<!--
描述：实践环节-新增组件
开发人：fwb
开发日期：2017年8月22日
-->

<template lang="pug">
    kalix-dialog.user-add(bizKey="setTemplateAdd" ref="kalixBizDialog" v-bind:form-model.sync="formModel" v-bind:targetURL="targetURL" )
        div.el-form(slot="dialogFormSlot")
            div.s-flex
                el-form-item.s-flex_item(label="模板代码" prop="mbdm" v-bind:label-width="labelWidth")
                    el-input(v-model="formModel.mbdm")
                el-form-item.s-flex_item(label="模板名称" prop="mbmc" v-bind:label-width="labelWidth")
                    el-input(v-model="formModel.mbmc")
            div.s-flex
                el-form-item.s-flex_item(label="课程类别" prop="kclb" v-bind:label-width="labelWidth")
                    div.s-flex
                        kalix-dict-select.s-flex_item(v-model="formModel.kclb2"  appName="educational" dictType="课程类别2" )
                        kalix-dict-select.s-flex_item(v-model="formModel.kclb3"  appName="educational" dictType="课程类别3")
                        kalix-dict-select.s-flex_item(v-model="formModel.kclb1"  appName="educational" dictType="课程类别1")
            div.s-flex
                el-form-item.s-flex_item(label="课程/环节" prop="kchj" v-bind:label-width="labelWidth")
                    kalix-dict-select(v-model="formModel.kchj"  appName="educational" dictType="课程/环节" )
                el-form-item.s-flex_item(label="状态" prop="zt" v-bind:label-width="labelWidth")
                    kalix-dict-select(v-model="formModel.zt"  appName="educational" dictType="状态" )
            div.s-flex
                el-form-item.s-flex_item(label="主修/辅修" prop="zxfx" v-bind:label-width="labelWidth")
                    kalix-dict-select(v-model="formModel.zxfx"  appName="educational" dictType="主修/辅修" )
                el-form-item.s-flex_item(label="备注" prop="bz" v-bind:label-width="labelWidth")
                    el-input(v-model="formModel.bz" type="textarea")
</template>

<script type="text/ecmascript-6">
    import FormModel from './model'
    import {setTemplateURL} from '../../config.toml'

    export default {
        name: 'SetTemplateAdd',
        data() {
            return {
                formModel: Object.assign({}, FormModel),
                rules: {
                    //  userId: [{type: 'number', required: true, message: '请输入学生姓名', trigger: 'change'}]
                },
                targetURL: setTemplateURL,
                labelWidth: '120px'
            }
        },
        components: {},
        created() {
        },
        methods: {}
    }
</script>

<style scoped lang="stylus">
    .el-form
        padding 30px 70px 30px 20px
</style>
